package com.tiancheng.trade.order.bo.excel;

import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * excel导出类
 *
 * @author likailun
 * @date 2021/6/3
 */
@Getter
@Setter
public class ExportExcelBO {
    /**
     * 文件名称，不带xlsx后缀
     */
    private String fileName;

    /**
     * sheet页
     */
    private List<Sheet> sheets;

    @Getter
    @Setter
    public static class Sheet {

        @NotEmpty
        private String sheetName;
        /**
         * 数据，需要指定表头
         */
        private List<?> data;
    }
}
